Release 10.1A: OpenEdge Development:
Messaging and ESB
Enhanced XML support
Prior to OpenEdge Release 10.1, the OpenEdge Adapter for SonicMQ supported using the
XMLMessagetype if the client created the message as text in a well-formed XML document.In OpenEdge Release 10.1, clients can send additional types of data, such as temp-tables and ProDatasets, as
XMLMessage. TheTempTableMessageandDataSetMessagetransport data to the SonicMQ Broker using XML. The 4GL has built-in functionality to transformTEMP-TABLEorProDataSetdata into XML. Additionally, 4GL clients read, write, and parse XML usingSAX-READER,SAX-WRITER, andX-DOCUMENT.For more information on accessing the examples files, see the "Example procedures" section.
The following example shows how to use the
SAX-WRITERobject:
The following example shows how to use the setSaxReader procedure:
The
SAX-WRITERobject reads XML from a file using theSAX-READERobject and send it to a queue using anXMLMessage. The following example shows how to use theSAX-WRITERobject:
The
SAX-READERobject reads anXMLMessagefrom a queue and writes it to aLONGCHAR. The following example shows how to use theSAX-READERobject:
The following example shows how to use the setX-Document procedure:
The following example shows how to use getX-Document function:
The
X-DOCUMENTobject reads XML from a file and sends it to a queue using anXMLMessage. The following example shows how to useX-DOCUMENTobject to send a message:
The
X-DOCUMENTobject reads anXMLMessagefrom a queue and writes it to aLONGCHAR. The following example shows how to useX-DOCUMENTobject to receive a message:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |